<?php

namespace app\store\model;

use think\Model;

class GroupOrderItem extends Model
{
    protected $schema = [
        'id' => 'int',
        'group_order_id' => 'user_id',
        'group_goods_id' => 'int',
        'goods_name' => 'string',
        'attr' => 'string',
        'image' => 'string',
        'market_price' => 'float',
        'sell_price' => 'float',
        'buy_num' => 'int',
        'total_amount' => 'float',
    ];

    public function getImageAttr($value)
    {
        return request()->domain() . $value;
    }
}